import os

files = os.listdir('.')
for filename in files:
	portion = os.path.splitext(filename)
	if portion[1] == ".doc":  
		newname = "DOC_" + portion[1]  
		os.rename(filename,newname)
